﻿//*************************************************************************
//面向服务的协作式智能交通系统仿真软件SoC-ITSS v2.1 alpha
//发布单位：西北工业大学--巴黎高科MINES机器人与群智能系统联合实验室
//团队负责人：张凯龙 Zhang Kailong
//团队成员：张大方、杨安胜、王敏、谢策、王雨佳、谢尘玉等
//联系我们：kl.zhang@nwpu.edu.cn
//2012-2021
//*************************************************************************


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

//*******************************************************
//
//文件名(File Name):           FormConfig.cs
//
//数据表(Tables):              nothing 
//          修改理由：         增加相应属性、方法
//
//*******************************************************
namespace CyberCarSimulation.Bean
{
    class IntersectionPolicyConfig
    {
        private string Policy;
        private int Authorization;
        private int IntersectionSerialNum;

        //无参构造
        public IntersectionPolicyConfig() 
        {
        }

        //有参构造
        public IntersectionPolicyConfig(string Policy, int Authorization, int IntersectionSerialNum) 
        {
            this.Policy = Policy;
            this.Authorization = Authorization;
            this.IntersectionSerialNum = IntersectionSerialNum;
        }


        //获取策略
        public string GetPolicy() 
        {
            return this.Policy;
        }

        //设置策略
        public void SetPolicy(string Policy) 
        {
            this.Policy = Policy;
        }


        //获取策略的授权数量
        public int GetAuthorization()
        {
            return this.Authorization;
        }

        //设置策略的授权数量
        public void SetAuthorization(int Authorization)
        {
            this.Authorization = Authorization;
        }


        //获取路口序号
        public int GetIntersectionSerialNum()
        {
            return this.IntersectionSerialNum;
        }

        //设置路口序号
        public void SetIntersectionSerialNum(int IntersectionSerialNum)
        {
            this.IntersectionSerialNum = IntersectionSerialNum;
        }

    }
}
